<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			/*
			var sum = 0;
			for (var i = 1; i <= 100; i += 1) {
				sum += i;
			}
			window.alert(sum);
			*/
			/*
			var sum = 0;
			var i = 1;
			while (i <= 100) {
				sum += i;
				i += 1;
			}
			window.alert(sum);
			*/
			var sum = 0;
			var i = 1;
			do {
				sum += i;
				i += 1;
			} while (i <= 100);
			window.alert(sum);
		</script>
	</body>
</html>
